home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / macintosh-c / macc-carbon-demos-nonbinhex.sit / macc-carbon-demos-nonbinhex / chap25-demo-carbon events / Notification.c.rsrc / TEXT_8715.txt < prev   
Text File  |  2001-03-12  |  1KB  |  29 lines

  1. // *******************************************************************************************
  2. // Notification.c                                         CARBONIZED.  USES CARBON EVENT MODEL
  3. // *******************************************************************************************
  4.  
  5. #include "Miscellany.h"
  6.  
  7. // ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ‚Ķ global variables
  8.  
  9. NMRec                                                gNotificationStructure;
  10. long                                                gStartingTickCount;
  11. Boolean                                            gNotificationDemoInvoked;
  12. Boolean                                            gNotificationInQueue;
  13. extern WindowRef                        gWindowRef;
  14. extern ProcessSerialNumber    gProcessSerNum;
  15. extern RGBColor                            gWhiteColour;
  16. extern RGBColor                            gBlueColour;
  17.  
  18. // *********************************************************************** doSetUpNotification
  19.  
  20. void  doSetUpNotification(void)
  21. {
  22.     doPrepareNotificationStructure();
  23.     gNotificationDemoInvoked = true;
  24.  
  25.     gStartingTickCount = TickCount();
  26.  
  27.     RGBForeColor(&gWhiteColour);
  28.     MoveTo(10,279);
  29.     DrawString("\pPlease cl